package cn.yuanqiao.manage.domain;/**
 * @author 赵常飞
 * @date 2024/1/24 14:42
 */

import cn.yuanqiao.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Objects;

/**
 *@Author: 赵常飞
 *@Date: 2024/1/24 14:42
 *@Description:
 *@Note:
 */

public class YqdaMdataListShy extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /** ID */
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    private Long id;
    /** 门类id*/
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    private Long categoryId;
    /** 元数据方案groupID */
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    private Long groupId;
    /** 件:0 卷:1 项目:2 */
    private Integer type;
    /**英文名*/
    private String fieldName;
    /**原元数据明细的id*/
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    private Long mdataId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public Long getMdataId() {
        return mdataId;
    }

    public void setMdataId(Long mdataId) {
        this.mdataId = mdataId;
    }

    @Override
    public String toString() {
        return "YqdaMdataListShy{" +
                "id=" + id +
                ", categoryId=" + categoryId +
                ", groupId=" + groupId +
                ", type=" + type +
                ", fieldName='" + fieldName + '\'' +
                ", mdataId=" + mdataId +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof YqdaMdataListShy)) return false;
        YqdaMdataListShy that = (YqdaMdataListShy) o;
        return Objects.equals(getId(), that.getId()) && Objects.equals(getCategoryId(), that.getCategoryId()) && Objects.equals(getGroupId(), that.getGroupId()) && Objects.equals(getType(), that.getType()) && Objects.equals(getFieldName(), that.getFieldName()) && Objects.equals(getMdataId(), that.getMdataId());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getCategoryId(), getGroupId(), getType(), getFieldName(), getMdataId());
    }
}
